using System;
using UnityEngine;

public class ReviewPreferences
{
	private const string DontShowAgainKey = "DontShowReviewPopup";

	private const string DaysUntilShowKey = "DaysUntilShow";

	private const string ShowTimesKey = "TimesShowed";

	private const string AppleShowTimesKey = "ApplePopupTimesShowed";

	private const string LastShowTimeKey = "LastShowTimeDate";

	public static bool ShouldntShowAgain
	{
		get
		{
			return PlayerPrefs.GetInt("DontShowReviewPopup", 0) == 1;
		}
		set
		{
			PlayerPrefs.SetInt("DontShowReviewPopup", value ? 1 : 0);
		}
	}

	public static int DaysUntilShow
	{
		get
		{
			return PlayerPrefs.GetInt("DaysUntilShow", 30);
		}
		set
		{
			PlayerPrefs.SetInt("DaysUntilShow", value);
		}
	}

	public static int ShowTimes
	{
		get
		{
			return PlayerPrefs.GetInt("TimesShowed", 0);
		}
		set
		{
			PlayerPrefs.SetInt("TimesShowed", value);
		}
	}

	public static DateTime LastTimeShowed
	{
		get
		{
			return DateTime.Parse(PlayerPrefs.GetString("LastShowTimeDate", DateTime.MinValue.ToString()));
		}
		set
		{
			PlayerPrefs.SetString("LastShowTimeDate", value.ToString());
		}
	}

	public static int ShownStoreKitReviewPopup
	{
		get
		{
			return PlayerPrefs.GetInt("ApplePopupTimesShowed", 0);
		}
		set
		{
			PlayerPrefs.SetInt("ApplePopupTimesShowed", value);
		}
	}
}
